package com.itheima.health.dao;

import com.itheima.health.pojo.Order;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * PROJECT_NAME: teamwork-health-system
 * NAME: OrderDao
 *
 * @AUTHOR: YAN6D0N6SH3N6
 * DATETIME: 2023/6/6 19:55
 * DESCRIPTION : 订单持久层接口
 */
@Mapper
public interface OrderDao {
    /**
     * 添加预约单信息
     *
     * @param order 预约单信息
     */
    void insertOrder(@Param("order") Order order);

    /**
     * 通过id查询预约信息
     *
     * @param id 预约单id
     * @return {@link Order}
     */
    Order getOrder(@Param("id") Integer id);
}
